import { createRouter, createWebHistory } from 'vue-router'

import home_page from "../views/home_page.vue";

const routes = [
  {
    path: '/',
    name: 'home',
    component: home_page,
    redirect:'/user',
    children:[
      {path: '/user', component: () => import('../views/user/UserView.vue')},
      {path: '/home_page', component: () => import('../views/home_page.vue')},
      {path:'checking_in', component: () => import('../views/checking_in/CheckingInView.vue')},
      {path:'checking_sum', component: () => import('../views/checking_in/CheckingSum.vue')},
      {path:'checking_set', component: () => import('../views/checking_in/CheckingSet.vue')},
      {path:'checking_group', component: () => import('../views/checking_in/CheckingGroup.vue')},
      {path:'checking_vocation', component: () => import('../views/checking_in/CheckingVocation.vue')},
      {path:'orglist', component: () => import('../views/Organization/OrgList.vue')},
      {path:'positionarg', component: () => import('../views/Organization/PositionArg.vue')},
      {path:'positionlevel', component: () => import('../views/Organization/PositionLevel.vue')},
      //     添加相应的路由
    ]
  },
  {path: '/login', component: () => import('../views/LoginView')}
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router